package com.ems.pojo.data;

/**
 * @Auther: 伟伟
 * @Date: 2019/10/4
 * @Description: 封装返回数据
 * @Version: 1.0
 */
public class ResultData {
    private int code;
    private String message;
    private Object data;

    public ResultData(){

    }

    public ResultData(int code){
        this.code = code;
    }

    public ResultData(int code,String message){
        this.code = code;
        this.message = message;
    }

    public ResultData(int code,Object data){
        this.code = code;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultData{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
